package cn.edu.scau.cmi.wujiaxian.abstractFactory.factory;

import cn.edu.scau.cmi.wujiaxian.abstractFactory.domainAbstractClass.Beef;
import cn.edu.scau.cmi.wujiaxian.abstractFactory.domainAbstractClass.Pork;

public abstract class AbstractFactory {
	
	public static AbstractFactory getFactory(String brand) {
		switch (brand) {
		case "aonong":
			return new AonongFactory();
		case "tianbang":
			return new TianbangFactory();
		case "wens":
			return new WensFactory();
		}
		return null;
	}
	
	public abstract Beef createBeef();
	
	public abstract Pork createPork();

}